<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<style>
  span {
    display: inline-block;
    width: 100px;
    /*上下间隔 */
    padding: 5px 10px;
    border: 1px solid pink;
    margin: 2px;
    border-radius: 5px;
    box-shadow: 2px 2px 2px #ffc0cb;
    background-color: #e9d8db;
    text-align: center;

  }
</style>

<body>
  <script>

    // // 声明函数
    // function sayHi() {
    //   document.write('hi~~~')
    // }
    // // 函数调用，函数不调用，不执行
    // sayHi()
    // sayHi()
    // span 行级容器，div是块级容器
    function get99() {
      for (let i = 1; i <= 9; i++) {
        for (let j = 1; j <= i; j++) {
          document.write(`<span>${j} X ${i} = ${i * j}</span>`)
        }
        document.write('<br>')
      }
    }
    get99()
    get99()
    get99()
  </script>
</body>

</html>